package day5;

/**
 * @author oldliu
 * @since 1.0
 */
public class Arr4 {
    public static void main(String[] args) {
        double []a2={1,2,56,6,70,199};
        for (int i = 0; i < a2.length; i++) {
            System.out.println("第"+i+"个是："+a2[i]);
        }
        for(double  i:a2){
            //i不是下标，是数组中的每一个值
            System.out.println(i);
        }
    }
}
